<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>

<f:subview id="myList">
<h:dataTable id="table" value="#{sessionBean.myList}" var="product" 
	styleClass="box2" columnClasses=", rightAlign" headerClass="highLight"
	rendered="#{accountBean.loggedin && accountBean.account.listOption}">
  <h:column>
    <f:facet name="header">
      <h:outputText value="My List" styleClass="title" style="color: #FFFFFF"/>
    </f:facet>
    <h:outputLink  value="product.jsf?productId=#{product.productId}">
      <h:outputText value="#{product.name}"/>
    </h:outputLink>
  </h:column>
</h:dataTable>
</f:subview>